/**
 * Created by gouyuxiu on 2017/6/14.
 */
var ip = "http://localhost:3003/webapi/";
//身份证号码正则表达式
var IDReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
//手机号码正则表达式
var mobileReg = /^1[3|4|5|7|8][0-9]{9}$/;
//车牌号的正则表达式
var carReg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
//邮箱正则表达式
var emailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;

function my_alert(msg){
    console.log(msg);
    if(msg != ""){
        $(".my-alert").text(msg);
        $(".my-alert").fadeIn();
        var t = setTimeout(function(){
            clearTimeout(t);
            $(".my-alert").fadeOut();
        },2000);
    }
}

function my_error(xhr,textStatus,e){
    console.log(xhr);
    console.log(textStatus);
    console.log(e);
}
